package org.biz.util;

/**
* Create By Crixalis:
* 2017年5月22日 下午1:47:06
* 枚举业务逻辑异常
*/
public enum ResponseEnum {
	USER_LOGIN_PASSWORD(101,"您输入的用户名或者密码错误"),
	USER_ISEXIST(102,"该用户已存在"),
	USER_PHONEISEXIST(102,"该手机号的用户已存在"),
	USER_ISNOTEXIST(103,"该用户不存在"),
	USER_REGIST_ACCOUNT(104,"您未输入用户名"),
	USER_REGIST_PASSWORD(105,"您的用户等级不足或未选定课程模块，如有问题请咨询请咨询客服人员"),
	USER_NEVERPAY(106,"您的用户等级不足或未购买课程"),
	USER_EMPTYPHONE(107,"手机号不能为空"),
	USER_SIMPLEPASSWORD(108,"密码要求同时含有数字和字母，且长度不小于8位"),
	USER_WRONGOLDPASSWORD(109,"您输入的旧密码错误"),
	USER_NEVERACTIVATE(110,"您的账号从未激活,请前往激活"),
	USER_NOT_ACTIVE(111,"您的账号未激活,请联系管理员激活"),
	USER_PASTDUEPAY(106,"您购买的用户等级已经过期,请重新激活"),
	USER_IOS_NEVERPAY(110,"您的账户需要激活,请前往激活"),
	USER_REGIST_IDNUMBER(112,"您未输入身份证号"),
	IOS_WRONG_RECEIPT(113,"错误113,如有问题请咨询请咨询客服人员!"),
	USER_IDNUMBERISEXIST(114,"该身份证号用户已存在"),
	USER_IDNUMBER_ILLEAGAL(115, "身份证不合法"),
	USER_COURSE_UNAUTHORIZED(116, "没有权限访问课程"),
	
	CONTENT_TYPE_ISNOT_FULL(120, "课程类型属性不完整"),
	CONTENT_ISNOT_FULL(121, "课程的属性不完整或不合法"),
	CONTENT_ISNOT_EXIST(122, "课程不存在"),
	CONTENT_ISNOT_FINISH(123, "还未学完该课程,请先学习完该课程"),
	CONTENT_IS_PASS(124, "您已经通过该课程的考试"),
	CONTENT_NO_EXAM_CHANCE(125, "您已经没有参与考试的次数"),

	ANSWER_SHEET_NO_QUESTION(181, "答卷没考题"),
	ANSWER_SHEET_ILLEAGAL(182, "答卷不合法"),


	SLIDE_ISNOTEXIST(191,"该轮播图不存在"),

	UPLOAD_EXCEL_DEAL_EXPTION(201,"处理excel失败"),

	SHORT_MSG_SEND_ERROR(220,"发送短信失败"),
	SHORT_MSG_SEND_FREQUENTLY_ERROR(221,"短信发送过于频繁,请稍后再试"),
	SHORT_MSG_MIS_MATCH(223,"您输入的验证码不正确"),
	SHORT_MEG_IS_REGISTER(224,"您已经注册过了,请前往登录"),
	
	VIDEO_IS_NOT_EXIST(300, "该资源不存在"),
	VIDEO_GET_AUTH_FAIL(301, "获取资源权限失败"),
	PAY_GET_AUTH_FAIL(500, "下单失败"),
	PAYMENT_EXIST(501, "用户已购买过"),
	PAYMENT_NOT_EXIST(502, "商户订单号不存在"),
	PAYMENT_NOT_SUCCESS(502, "订单支付失败"),

	WECHAT_GET_CODE_FAIL(600, "获取微信openId失败"),

	UPLOAD_CRED_FAIL(700, "上传证书失败")
    ;
    
	private int code;
	
	private String msg;

	private ResponseEnum(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
	
}
